package com.heima.admin.service.impl;

import com.heima.admin.mapper.AdminChannelMapper;
import com.heima.admin.service.AdminChannelService;
import com.heima.client.wemedia.IWmChannelClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.dtos.WmChannelDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminChannelServiceImpl implements AdminChannelService {
    @Autowired
    private IWmChannelClient wmChannelClient;
    @Override
    public ResponseResult saveChannel(WmChannelDto channelDto) {
        return wmChannelClient.saveChannel(channelDto);
    }

    @Override
    public ResponseResult pageQuery(WmChannelDto channelDto) {
        return wmChannelClient.pageQuery(channelDto);
    }

    @Override
    public ResponseResult update(WmChannelDto channelDto) {
        return wmChannelClient.update(channelDto);
    }

    @Override
    public ResponseResult deleteChannel(Integer id) {
         return wmChannelClient.deleteChannel(id);
    }
}
